import http from '@/utils/request'
export const reqGetUserChannels = () => http({
  method: 'GET',
  url: '/v1_0/user/channels'
})

/**
 * 获取所有的频道信息
 */
export const reqGetAllChannels = () => http('/v1_0/channels')
/**
 * 设置用户频道(重置式)
 * @param {*} channels
 * - id 频道id
 * - seq 顺序序号
 */
export const reqSetChannels = (channels) => http.put('/v1_0/user/channels', { channels })
